package edu.dayu.proxy;

public class StaticProxy implements ILawSuit{
    private ILawSuit target;

    public StaticProxy(ILawSuit target) {
        this.target = target;
    }

    @Override
    public void submit(String proof) {
        System.out.println("静态代理");
        target.submit(proof);
    }

    @Override
    public void defend() {
        System.out.println("静态代理");
        target.defend();
    }
}
